﻿@model Lehnet.Models.Ilce
<html>
<head>
    <title></title>
    <script type="text/javascript" src="/Scripts/jquery-1.4.4.js"></script>
    <script type="text/javascript" src="/Scripts/jquery.unobtrusive-ajax.js"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script>
        function CloseAndUpdate() {
            parent.getallIlceAjax();
            parent.jQuery.fancybox.close();
        }
        function OnSuccess(result, status, xhr) {

            CloseAndUpdate();
        }
    </script>
</head>
<body>
    <div style="width: 100%; text-align: right;">
        <a href="#" title="Kapat" onclick="CloseAndUpdate()">
            <input type="button" value="Kapat" /></a>
    </div>
    <h2>@ViewBag.Message</h2>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>Ilce</legend>

            @Html.HiddenFor(model => model.Id)
            @Html.HiddenFor(model => model.IlId)
            @Html.HiddenFor(m => m.EntityName)
            @Html.HiddenFor(m => m.TableName)

            <div class="editor-label">
                Ad:
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Ad)
            </div>

            <div class="editor-label">
                Aktif mi:
            </div>
            <div class="editor-field">
                @Html.CheckBoxFor(model => model.Aktif)
            </div>

            <p>
                <input type="submit" value="Değişiklikleri Kaydet" />
            </p>
        </fieldset>
    }
</body>
</html>
